using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;

namespace GuerillaProgrammer.FileProcessor
{
    public partial class frmNewWorkflow : Form
    {
        #region Private member fields
        #endregion

        #region Constructors and cleanup methods
        public frmNewWorkflow()
        {
            InitializeComponent();
        }
        #endregion

        #region Private implementation methods
        #endregion

        #region Class properties
        public string WorkflowName
        {
            get { return txtName.Text; }
            set { txtName.Text = value; }
        }
        #endregion

        #region Events handlers
        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            if (".xoml" != Path.GetExtension(txtName.Text))
            {
                txtName.Text = Path.GetFileNameWithoutExtension(txtName.Text) + ".xoml";
            }
            this.Close();
        }
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
        #endregion

        #region Public interface
        #endregion

    }
}